<div class="col-xs-12" style = "background: #CEE3F6"><h4>Detalles</h4><br/>
	<div id= "formArea" class="col-xs-12">
		<form id="commonform" role="form" enctype="multipart/form-data">
			<div class="form-group">
 
<?php
	include "conexion_bd.php";
	$mysqli->set_charset("utf8");
	$r = $mysqli->query("SELECT primer_nombre, primer_apellido FROM ".$_POST["tabla"]." WHERE ".$_POST["campo"]."='".$_POST["dato"]."';");

	$labels= array("Nombre", "Apellido");
	
	while ($fila = $r->fetch_assoc())
	{

		$dato_actual= current($fila);

		for ($i= 0; $i < sizeof($labels); $i++)
		{
			print '<label for='.$labels[$i].'>'.$labels[$i].'</label>
				<input type="text" class="form-control" id="'.$labels[$i].'" name="'.$labels[$i].'" 
				placeholder="'.$dato_actual.'" disabled>';

			$dato_actual= next($fila);
		}
		
	}
?>

			</div>
		</form>
	</div>
</div>
